const Card = require('../../Card.js');

class PotionOfInvulnerability extends Card {
    setupCardAbilities(ability) {
        this.omni({
            effect: 'sacrifice {0} so that their creatures take no damage this turn',
            gameAction: [
                ability.actions.sacrifice(),
                ability.actions.forRemainderOfTurn({
                    effect: ability.effects.cardCannot('damage')
                })
            ]
        });
    }
}

PotionOfInvulnerability.id = 'potion-of-invulnerability';

module.exports = PotionOfInvulnerability;
